CC = gcc
VERSION = 1.0
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
DESTDIR = /usr

# includes and libs
INCS = -I/usr/include -I$(X11INC) -I/usr/include/libmpd-1.0
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `curl-config --libs` `xml2-config --libs` -lpthread -lmpd

# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS = -g -std=gnu99  -Wall -O0 ${CPPFLAGS} `xml2-config --cflags` -Wno-pointer-sign

LDFLAGS = -g ${LIBS}
SRCS = main.c clock.c yweather.c curl_sax.c gmail.c draw_statusbar.c mpd.c
OBJS = $(SRCS:.c=.o)

MAIN = dwmstatus

.PHONY: depend clean

all:$(MAIN)
	@echo dwmstatus has been compiled

$(MAIN): $(OBJS)
	$(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)

.c.o:
	$(CC) $(CFLAGS) $(INCS) -c $< -o $@

clean:
	rm *.o $(MAIN)

install:
	@echo installing executable file to $(DESTDIR)/bin
	@mkdir -p $(DESTDIR)/bin
	@cp -f $(MAIN) $(DESTDIR)/bin
	@chmod 755 $(DESTDIR)/bin/$(MAIN)

depend: $(SRCS)
	makedepend $(INCS)-I./ $^

# DO NOT REMOVE# DO NOT DELETE

main.o: /usr/include/curl/curl.h /usr/include/curl/curlver.h
main.o: /usr/include/curl/curlbuild.h /usr/include/sys/types.h
main.o: /usr/include/features.h /usr/include/bits/predefs.h
main.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
main.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
main.o: /usr/include/bits/types.h /usr/include/bits/typesizes.h
main.o: /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h
main.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h
main.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
main.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
main.o: /usr/include/bits/pthreadtypes.h /usr/include/stdint.h
main.o: /usr/include/bits/wchar.h /usr/include/inttypes.h
main.o: /usr/include/sys/socket.h /usr/include/sys/uio.h
main.o: /usr/include/bits/uio.h /usr/include/bits/socket.h
main.o: /usr/include/bits/sockaddr.h /usr/include/curl/curlrules.h
main.o: /usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h
main.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h
main.o: /usr/include/bits/sys_errlist.h /usr/include/limits.h
main.o: /usr/include/limits.h /usr/include/bits/posix1_lim.h
main.o: /usr/include/bits/local_lim.h /usr/include/linux/limits.h
main.o: /usr/include/bits/posix2_lim.h /usr/include/sys/time.h
main.o: /usr/include/curl/easy.h /usr/include/curl/multi.h
main.o: /usr/include/curl/curl.h /usr/include/unistd.h
main.o: /usr/include/bits/posix_opt.h /usr/include/bits/environments.h
main.o: /usr/include/bits/confname.h /usr/include/getopt.h config.h
main.o: yweather.h dwmstatus_types.h /usr/include/string.h
main.o: /usr/include/xlocale.h /usr/include/sys/param.h
main.o: /usr/include/linux/param.h gmail.h clock.h mpd.h draw_statusbar.h
clock.o: /usr/include/time.h /usr/include/bits/types.h
clock.o: /usr/include/features.h /usr/include/bits/predefs.h
clock.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
clock.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
clock.o: /usr/include/bits/typesizes.h config.h /usr/include/curl/curl.h
clock.o: /usr/include/curl/curlver.h /usr/include/curl/curlbuild.h
clock.o: /usr/include/sys/types.h /usr/include/endian.h
clock.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
clock.o: /usr/include/sys/select.h /usr/include/bits/select.h
clock.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
clock.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
clock.o: /usr/include/stdint.h /usr/include/bits/wchar.h
clock.o: /usr/include/inttypes.h /usr/include/sys/socket.h
clock.o: /usr/include/sys/uio.h /usr/include/bits/uio.h
clock.o: /usr/include/bits/socket.h /usr/include/bits/sockaddr.h
clock.o: /usr/include/curl/curlrules.h /usr/include/stdio.h
clock.o: /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h
clock.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
clock.o: /usr/include/limits.h /usr/include/limits.h
clock.o: /usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h
clock.o: /usr/include/linux/limits.h /usr/include/bits/posix2_lim.h
clock.o: /usr/include/sys/time.h /usr/include/curl/easy.h
clock.o: /usr/include/curl/multi.h /usr/include/curl/curl.h yweather.h
clock.o: dwmstatus_types.h /usr/include/string.h /usr/include/xlocale.h
clock.o: /usr/include/sys/param.h /usr/include/linux/param.h gmail.h clock.h
clock.o: mpd.h
yweather.o: /usr/include/stdio.h /usr/include/features.h
yweather.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
yweather.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
yweather.o: /usr/include/gnu/stubs-32.h /usr/include/bits/types.h
yweather.o: /usr/include/bits/typesizes.h /usr/include/libio.h
yweather.o: /usr/include/_G_config.h /usr/include/wchar.h
yweather.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
yweather.o: /usr/include/stdlib.h /usr/include/bits/waitflags.h
yweather.o: /usr/include/bits/waitstatus.h /usr/include/endian.h
yweather.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
yweather.o: /usr/include/sys/types.h /usr/include/time.h
yweather.o: /usr/include/sys/select.h /usr/include/bits/select.h
yweather.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
yweather.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
yweather.o: /usr/include/alloca.h /usr/include/sys/param.h
yweather.o: /usr/include/limits.h /usr/include/limits.h
yweather.o: /usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h
yweather.o: /usr/include/linux/limits.h /usr/include/bits/posix2_lim.h
yweather.o: /usr/include/linux/param.h /usr/include/pthread.h
yweather.o: /usr/include/sched.h /usr/include/bits/sched.h
yweather.o: /usr/include/bits/setjmp.h /usr/include/unistd.h
yweather.o: /usr/include/bits/posix_opt.h /usr/include/bits/environments.h
yweather.o: /usr/include/bits/confname.h /usr/include/getopt.h
yweather.o: /usr/include/string.h /usr/include/xlocale.h config.h
yweather.o: /usr/include/curl/curl.h /usr/include/curl/curlver.h
yweather.o: /usr/include/curl/curlbuild.h /usr/include/stdint.h
yweather.o: /usr/include/bits/wchar.h /usr/include/inttypes.h
yweather.o: /usr/include/sys/socket.h /usr/include/sys/uio.h
yweather.o: /usr/include/bits/uio.h /usr/include/bits/socket.h
yweather.o: /usr/include/bits/sockaddr.h /usr/include/curl/curlrules.h
yweather.o: /usr/include/sys/time.h /usr/include/curl/easy.h
yweather.o: /usr/include/curl/multi.h /usr/include/curl/curl.h yweather.h
yweather.o: dwmstatus_types.h gmail.h clock.h mpd.h curl_sax.h
curl_sax.o: /usr/include/sys/param.h /usr/include/limits.h
curl_sax.o: /usr/include/features.h /usr/include/bits/predefs.h
curl_sax.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h
curl_sax.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h
curl_sax.o: /usr/include/limits.h /usr/include/bits/posix1_lim.h
curl_sax.o: /usr/include/bits/local_lim.h /usr/include/linux/limits.h
curl_sax.o: /usr/include/bits/posix2_lim.h /usr/include/linux/param.h
curl_sax.o: /usr/include/sys/types.h /usr/include/bits/types.h
curl_sax.o: /usr/include/bits/typesizes.h /usr/include/time.h
curl_sax.o: /usr/include/endian.h /usr/include/bits/endian.h
curl_sax.o: /usr/include/bits/byteswap.h /usr/include/sys/select.h
curl_sax.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
curl_sax.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
curl_sax.o: /usr/include/bits/pthreadtypes.h /usr/include/string.h
curl_sax.o: /usr/include/xlocale.h /usr/include/curl/curl.h
curl_sax.o: /usr/include/curl/curlver.h /usr/include/curl/curlbuild.h
curl_sax.o: /usr/include/stdint.h /usr/include/bits/wchar.h
curl_sax.o: /usr/include/inttypes.h /usr/include/sys/socket.h
curl_sax.o: /usr/include/sys/uio.h /usr/include/bits/uio.h
curl_sax.o: /usr/include/bits/socket.h /usr/include/bits/sockaddr.h
curl_sax.o: /usr/include/curl/curlrules.h /usr/include/stdio.h
curl_sax.o: /usr/include/libio.h /usr/include/_G_config.h
curl_sax.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h
curl_sax.o: /usr/include/bits/sys_errlist.h /usr/include/sys/time.h
curl_sax.o: /usr/include/curl/easy.h /usr/include/curl/multi.h
curl_sax.o: /usr/include/curl/curl.h curl_sax.h config.h yweather.h
curl_sax.o: dwmstatus_types.h gmail.h clock.h mpd.h
gmail.o: /usr/include/stdio.h /usr/include/features.h
gmail.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
gmail.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
gmail.o: /usr/include/gnu/stubs-32.h /usr/include/bits/types.h
gmail.o: /usr/include/bits/typesizes.h /usr/include/libio.h
gmail.o: /usr/include/_G_config.h /usr/include/wchar.h
gmail.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
gmail.o: /usr/include/stdlib.h /usr/include/bits/waitflags.h
gmail.o: /usr/include/bits/waitstatus.h /usr/include/endian.h
gmail.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
gmail.o: /usr/include/sys/types.h /usr/include/time.h
gmail.o: /usr/include/sys/select.h /usr/include/bits/select.h
gmail.o: /usr/include/bits/sigset.h /usr/include/bits/time.h
gmail.o: /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h
gmail.o: /usr/include/alloca.h /usr/include/sys/param.h /usr/include/limits.h
gmail.o: /usr/include/limits.h /usr/include/bits/posix1_lim.h
gmail.o: /usr/include/bits/local_lim.h /usr/include/linux/limits.h
gmail.o: /usr/include/bits/posix2_lim.h /usr/include/linux/param.h
gmail.o: /usr/include/unistd.h /usr/include/bits/posix_opt.h
gmail.o: /usr/include/bits/environments.h /usr/include/bits/confname.h
gmail.o: /usr/include/getopt.h /usr/include/string.h /usr/include/xlocale.h
gmail.o: /usr/include/pthread.h /usr/include/sched.h
gmail.o: /usr/include/bits/sched.h /usr/include/bits/setjmp.h config.h
gmail.o: /usr/include/curl/curl.h /usr/include/curl/curlver.h
gmail.o: /usr/include/curl/curlbuild.h /usr/include/stdint.h
gmail.o: /usr/include/bits/wchar.h /usr/include/inttypes.h
gmail.o: /usr/include/sys/socket.h /usr/include/sys/uio.h
gmail.o: /usr/include/bits/uio.h /usr/include/bits/socket.h
gmail.o: /usr/include/bits/sockaddr.h /usr/include/curl/curlrules.h
gmail.o: /usr/include/sys/time.h /usr/include/curl/easy.h
gmail.o: /usr/include/curl/multi.h /usr/include/curl/curl.h yweather.h
gmail.o: dwmstatus_types.h gmail.h clock.h mpd.h curl_sax.h
draw_statusbar.o: /usr/include/pthread.h /usr/include/features.h
draw_statusbar.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
draw_statusbar.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
draw_statusbar.o: /usr/include/gnu/stubs-32.h /usr/include/endian.h
draw_statusbar.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
draw_statusbar.o: /usr/include/sched.h /usr/include/bits/types.h
draw_statusbar.o: /usr/include/bits/typesizes.h /usr/include/time.h
draw_statusbar.o: /usr/include/bits/sched.h /usr/include/bits/pthreadtypes.h
draw_statusbar.o: /usr/include/bits/setjmp.h /usr/include/string.h
draw_statusbar.o: /usr/include/xlocale.h /usr/include/X11/Xlib.h
draw_statusbar.o: /usr/include/sys/types.h /usr/include/sys/select.h
draw_statusbar.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
draw_statusbar.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
draw_statusbar.o: /usr/include/X11/X.h /usr/include/X11/Xfuncproto.h
draw_statusbar.o: /usr/include/X11/Xosdefs.h dwmstatus_types.h
draw_statusbar.o: /usr/include/sys/param.h /usr/include/limits.h
draw_statusbar.o: /usr/include/limits.h /usr/include/bits/posix1_lim.h
draw_statusbar.o: /usr/include/bits/local_lim.h /usr/include/linux/limits.h
draw_statusbar.o: /usr/include/bits/posix2_lim.h /usr/include/linux/param.h
draw_statusbar.o: config.h /usr/include/curl/curl.h
draw_statusbar.o: /usr/include/curl/curlver.h /usr/include/curl/curlbuild.h
draw_statusbar.o: /usr/include/stdint.h /usr/include/bits/wchar.h
draw_statusbar.o: /usr/include/inttypes.h /usr/include/sys/socket.h
draw_statusbar.o: /usr/include/sys/uio.h /usr/include/bits/uio.h
draw_statusbar.o: /usr/include/bits/socket.h /usr/include/bits/sockaddr.h
draw_statusbar.o: /usr/include/curl/curlrules.h /usr/include/stdio.h
draw_statusbar.o: /usr/include/libio.h /usr/include/_G_config.h
draw_statusbar.o: /usr/include/wchar.h /usr/include/bits/stdio_lim.h
draw_statusbar.o: /usr/include/bits/sys_errlist.h /usr/include/sys/time.h
draw_statusbar.o: /usr/include/curl/easy.h /usr/include/curl/multi.h
draw_statusbar.o: /usr/include/curl/curl.h yweather.h gmail.h clock.h mpd.h
draw_statusbar.o: draw_statusbar.h
mpd.o: /usr/include/pthread.h /usr/include/features.h
mpd.o: /usr/include/bits/predefs.h /usr/include/sys/cdefs.h
mpd.o: /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h
mpd.o: /usr/include/gnu/stubs-32.h /usr/include/endian.h
mpd.o: /usr/include/bits/endian.h /usr/include/bits/byteswap.h
mpd.o: /usr/include/sched.h /usr/include/bits/types.h
mpd.o: /usr/include/bits/typesizes.h /usr/include/time.h
mpd.o: /usr/include/bits/sched.h /usr/include/bits/pthreadtypes.h
mpd.o: /usr/include/bits/setjmp.h /usr/include/stdio.h /usr/include/libio.h
mpd.o: /usr/include/_G_config.h /usr/include/wchar.h
mpd.o: /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h
mpd.o: /usr/include/unistd.h /usr/include/bits/posix_opt.h
mpd.o: /usr/include/bits/environments.h /usr/include/bits/confname.h
mpd.o: /usr/include/getopt.h config.h /usr/include/curl/curl.h
mpd.o: /usr/include/curl/curlver.h /usr/include/curl/curlbuild.h
mpd.o: /usr/include/sys/types.h /usr/include/sys/select.h
mpd.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
mpd.o: /usr/include/bits/time.h /usr/include/sys/sysmacros.h
mpd.o: /usr/include/stdint.h /usr/include/bits/wchar.h
mpd.o: /usr/include/inttypes.h /usr/include/sys/socket.h
mpd.o: /usr/include/sys/uio.h /usr/include/bits/uio.h
mpd.o: /usr/include/bits/socket.h /usr/include/bits/sockaddr.h
mpd.o: /usr/include/curl/curlrules.h /usr/include/limits.h
mpd.o: /usr/include/limits.h /usr/include/bits/posix1_lim.h
mpd.o: /usr/include/bits/local_lim.h /usr/include/linux/limits.h
mpd.o: /usr/include/bits/posix2_lim.h /usr/include/sys/time.h
mpd.o: /usr/include/curl/easy.h /usr/include/curl/multi.h
mpd.o: /usr/include/curl/curl.h yweather.h dwmstatus_types.h
mpd.o: /usr/include/string.h /usr/include/xlocale.h /usr/include/sys/param.h
mpd.o: /usr/include/linux/param.h gmail.h clock.h mpd.h draw_statusbar.h
